﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TYPLC
{
    public class TagConfig
    {
        public TagConfig(object tagName,
             int dataIndex,
             PLCDataType dataType, int dataLength, string address, object preVal = null)
        {
            TagName = tagName.ToString();
            DataIndex = dataIndex;
            Address = address;
            DataLength = dataLength;
            DataType = dataType;
            PreVal = preVal;
        }

        public string TagName { get; set; }
        public int DataIndex { get; set; }
        public string Address { get; set; }

        public int DataLength { get; set; }

        public PLCDataType DataType { get; set; }

        public object PreVal { get; set; }
    }
}